package com.team.engine.user.dao;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.team.engine.basedao.BaseEntity;

/**
 * 用户组，用户关联，表实体
 * @author MengLH
 * @data 2010-8-4
 */
@Entity
@Table(name="user_group_user")
public class UserGroupUser extends BaseEntity {
	
	
	/**
	 * 序列Id
	 */
	@Id
	private Long id;
	
	/**
	 * 用户组Id
	 */
	@Column(name="usergroup_id", unique=true)
	private int usergroupId;
	
	/**
	 * 用户Id
	 */
	@Column(name="user_id")
	private String userId;

//	@ManyToOne
//	private UserNav userNav;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public int getUsergroupId() {
		return usergroupId;
	}

	public void setUsergroupId(int usergroupId) {
		this.usergroupId = usergroupId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

//	public UserNav getUserNav() {
//		return userNav;
//	}
//
//	public void setUserNav(UserNav userNav) {
//		this.userNav = userNav;
//	}
	
}
